import React from "react";
import Layout from "../component/Layout";
import Menu from "../component/Menu";
import Make from "../component/Make";
import Routes from "./Routes";

// import {leftMenu, rightMenu} from "../config";

import NavMenuConfig from "./config/nav";

export default class Main extends React.Component
{
    render ()
    {
        return <Layout.Vertical style={{flexShrink:1}}>
            <Make.Header>
                <Menu.Nav items={NavMenuConfig}/>
                {/*<Menu.Nav items={rightMenu} class="float-right"/>*/}
            </Make.Header>

            <Layout.Area>
                <Routes/>
            </Layout.Area>
        </Layout.Vertical>;
    }
}